class CreateTransactions < ActiveRecord::Migration
  def self.up
    create_table :transactions do |t|
      t.integer :service_id
      t.timestamp :timestamp
      t.integer :from_id
      t.integer :to_id
      t.integer :is_fact
      t.decimal :summa
      t.string :details

      t.timestamps
    end
  end

  def self.down
    drop_table :transactions
  end
end
